package com.cn.yunhe.struts.controller;

import com.cn.yunhe.struts.modle.User;
import com.opensymphony.xwork2.ActionSupport;

public class UserController extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	public String queryUser(){
		user = new User();
		user.setUsername("王小乐");
		user.setUserpwd("123");
		return "success";
	}

	
	public String addUser(){
		
		return SUCCESS;
	}
	
	public String editUser(){
		
		return SUCCESS;
	}
	
	public String delUser(){
		
		return "user";
	}

	

}
